home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / clantr.z / clantr
Encoding:
Text File  |  2002-10-03  |  4.7 KB  |  133 lines

  1.  
  2.  
  3.  
  4. CCCCLLLLAAAANNNNTTTTRRRR((((3333SSSS))))                                                          CCCCLLLLAAAANNNNTTTTRRRR((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      CLANTR - return the value of the one norm, or the Frobenius norm, or the
  10.      infinity norm, or the element of largest absolute value of a trapezoidal
  11.      or triangular matrix A
  12.  
  13. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.      REAL FUNCTION CLANTR( NORM, UPLO, DIAG, M, N, A, LDA, WORK )
  15.  
  16.          CHARACTER DIAG, NORM, UPLO
  17.  
  18.          INTEGER   LDA, M, N
  19.  
  20.          REAL      WORK( * )
  21.  
  22.          COMPLEX   A( LDA, * )
  23.  
  24. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  25.      These routines are part of the SCSL Scientific Library and can be loaded
  26.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  27.      directs the linker to use the multi-processor version of the library.
  28.  
  29.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  30.      4 bytes (32 bits). Another version of SCSL is available in which integers
  31.      are 8 bytes (64 bits).  This version allows the user access to larger
  32.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  33.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  34.      only one of the two versions; 4-byte integer and 8-byte integer library
  35.      calls cannot be mixed.
  36.  
  37. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  38.      CLANTR returns the value of the one norm, or the Frobenius norm, or the
  39.      infinity norm, or the element of largest absolute value of a trapezoidal
  40.      or triangular matrix A.
  41.  
  42. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  43.      CLANTR returns the value
  44.  
  45.         CLANTR = ( max(abs(A(i,j))), NORM = 'M' or 'm'
  46.                  (
  47.                  ( norm1(A),         NORM = '1', 'O' or 'o'
  48.                  (
  49.                  ( normI(A),         NORM = 'I' or 'i'
  50.                  (
  51.                  ( normF(A),         NORM = 'F', 'f', 'E' or 'e'
  52.  
  53.      where  norm1  denotes the  one norm of a matrix (maximum column sum),
  54.      normI  denotes the  infinity norm  of a matrix  (maximum row sum) and
  55.      normF  denotes the  Frobenius norm of a matrix (square root of sum of
  56.      squares).  Note that  max(abs(A(i,j)))  is not a  matrix norm.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. CCCCLLLLAAAANNNNTTTTRRRR((((3333SSSS))))                                                          CCCCLLLLAAAANNNNTTTTRRRR((((3333SSSS))))
  71.  
  72.  
  73.  
  74. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  75.      NORM    (input) CHARACTER*1
  76.              Specifies the value to be returned in CLANTR as described above.
  77.  
  78.      UPLO    (input) CHARACTER*1
  79.              Specifies whether the matrix A is upper or lower trapezoidal.  =
  80.              'U':  Upper trapezoidal
  81.              = 'L':  Lower trapezoidal Note that A is triangular instead of
  82.              trapezoidal if M = N.
  83.  
  84.      DIAG    (input) CHARACTER*1
  85.              Specifies whether or not the matrix A has unit diagonal.  = 'N':
  86.              Non-unit diagonal
  87.              = 'U':  Unit diagonal
  88.  
  89.      M       (input) INTEGER
  90.              The number of rows of the matrix A.  M >= 0, and if UPLO = 'U', M
  91.              <= N.  When M = 0, CLANTR is set to zero.
  92.  
  93.      N       (input) INTEGER
  94.              The number of columns of the matrix A.  N >= 0, and if UPLO =
  95.              'L', N <= M.  When N = 0, CLANTR is set to zero.
  96.  
  97.      A       (input) COMPLEX array, dimension (LDA,N)
  98.              The trapezoidal matrix A (A is triangular if M = N).  If UPLO =
  99.              'U', the leading m by n upper trapezoidal part of the array A
  100.              contains the upper trapezoidal matrix, and the strictly lower
  101.              triangular part of A is not referenced.  If UPLO = 'L', the
  102.              leading m by n lower trapezoidal part of the array A contains the
  103.              lower trapezoidal matrix, and the strictly upper triangular part
  104.              of A is not referenced.  Note that when DIAG = 'U', the diagonal
  105.              elements of A are not referenced and are assumed to be one.
  106.  
  107.      LDA     (input) INTEGER
  108.              The leading dimension of the array A.  LDA >= max(M,1).
  109.  
  110.      WORK    (workspace) REAL array, dimension (LWORK),
  111.              where LWORK >= M when NORM = 'I'; otherwise, WORK is not
  112.              referenced.
  113.  
  114. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  115.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  116.  
  117.      This man page is available only online.
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.